<div class="title"><p>日&nbsp;志</p></div>
<div class="plate">
  <% @articles.each do |article| %>
    <div id="log_<%= article.id %>" class="monomer">
      <div id="picture"><%= valleyer_logo_image_tag article.author, {:width => 60, :height => 60} %></div>
      <div class="content">
        <div class="caption">
          <div class="auther">
            <%= link_to truncate(article.author.nick_name, :length => 5),
              valleyer_url(article.author),
              :target => :_blank,
              :class => "client_name",
              :title => article.author.nick_name
          %>
          </div>
          <p>发表日志</p>
          <%= link_to truncate(article.title, :length => 10),
            show_log_url(article),
            :title => article.title,
            :target => :_blanck
        %>
          <p id="is_have_picture"></p>
        </div>
        <div class="works">
          <div class="message">
            <b class="time_documet"><%= time_ago_in_words article.created_at, false %>前 分类：<%= truncate("#{article.documet_type.name}", :length => 10) %></b>
            <b>|</b><b>阅读(<%= article.browse_records_count %>)</b>
            <b>评论(<%= article.post_sessions.length %>)</b>
            <% if loggined_by? article.author %>
              <b>|</b>
              <%= link_to_remote "编辑",
                :update => :log_content,
                :url => edit_documents_show_log_url(article, :current_page => @articles.current_page),
                :method => :get
            %>
              <%= link_to_remote "删除",
                :update => :logs_content,
                :url => documents_show_log_url(article, :page_number => @articles.current_page),
								:confirm => "确认删除?",
                :loading => "Effect.Fade('log_#{article.id}')",
                :method => :delete
            %>
            <% end %>
          </div>
          <div class="summarize"><%= truncate("#{strip_tags(article.content)}", :length => 300) %></div>
        </div>
      </div>
    </div>
  <% end %>
</div>
<%= page_turner(:log, @articles) %>